package com.omg.persistence.dao.lifepoint.sqlmapdao;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.ibatis.dao.client.DaoManager;
import com.ibatis.dao.client.template.SqlMapDaoTemplate;
import com.omg.persistence.dao.lifepoint.entity.LPFriendRequest;
import com.omg.persistence.dao.lifepoint.iface.LPFriendRequestDao;

/**
 * 
 * @author xiazhiquan
 * 
 *         May 28, 2011
 */
public class LPFriendRequestSqlMapDao extends SqlMapDaoTemplate implements
		LPFriendRequestDao {

	public LPFriendRequestSqlMapDao(DaoManager daoManager) {
		super(daoManager);
	}

	@Override
	public List<LPFriendRequest> getFriendRequestsByUseridAndIsnew(String userid,
			boolean isnew) {
		Map<String, Object> map = new HashMap<String, Object>();
		map.put("userid", userid);
		map.put("isnew", isnew);
		return this.queryForList("getFriendRequestsByUseridAndIsnew", map);
	}

}
